<template>
  <div></div>
</template>
<script lang="ts" setup>
import { onActivated, onDeactivated } from 'vue'

onActivated(() => {
  console.log(31)
})
onDeactivated(() => {
  console.log(32)
})
</script>